function exportExcel(){
	var handleStr = '';
	$("#srchuserdiv input:checkbox").each(function(){
		if(this.checked){
			var id = $(this).val();
			if(handleStr.length == 0){
				handleStr += id;
			}else{
				handleStr += "_"+id;
			}
		}	
	});
	if(handleStr.length > 0){
		window.location = "index.php?c=Down&idStr="+handleStr;
	}
}


function changestate(eid, stateid){
	var handleStr = '';
	$("#srchuserdiv input:checkbox").each(function(){
		if(this.checked){
			var id = $(this).val();
			if(handleStr.length == 0){
				handleStr += id;
			}else{
				handleStr += "_"+id;
			}
		}	
	});
	if(handleStr.length == 0){
		alert("请选择要操作的简历～");
		return;
	}
	$.ajax({
		type:"GET",
		url:"index.php?c=Ajax&a=ChangeState",
		data:"idstr="+handleStr+"&stateid="+stateid+"&eid="+eid,
		success:function(msg){
			if(msg == 1){
				alert("设置成功！");
			}else{
				alert("设置失败～");
			}	
		}
	});
}

function setplace(){
	var handleStr = '';
	$("#srchuserdiv input:checkbox").each(function(){
		if(this.checked){
			var id = $(this).val();
			if(handleStr.length == 0){
				handleStr += id;
			}else{
				handleStr += "_"+id;
			}
		}	
	});
	if(handleStr.length == 0){
		alert("请选择要操作的简历～");
		return;
	}
	var placetype = $("#placetype").val();
	var placelist = $("#placelist").val();
	$.ajax({
		type:"GET",
		url:"index.php?c=Ajax&a=SetPlace",
		data:"idstr="+handleStr+"&placetype="+placetype+"&placelist="+placelist,
		success:function(msg){
			if(msg == 1){
				alert("设置成功！");
			}else{
				alert(msg);
				//alert("设置失败～");
			}	
		}
	});
}
